package com.yuyou.tas.admin.vo.req;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by yujn.liu on 2018/1/22.
 */
public class ReqSysAuthUserAdd {

    @ApiModelProperty(value = "帐号", required = true)
    @NotBlank(message = "帐号(account)不能为空")
    private String account;

    @ApiModelProperty(value = "密码 md5 hash", required = true)
    @NotBlank(message = "密码(password)不能为空")
    private String password;

    @ApiModelProperty(value = "确认密码", required = true)
    @NotBlank(message="cPassword不能为空")
    private String cPassword;

    @ApiModelProperty(value = "姓名", required = true)
    @Length(max = 40 , message = "用户名长度不能超过40个字")
    @NotBlank(message = "姓名(username) 不能为空")
    private String username;

    @ApiModelProperty(value = "帐号角色id", required = true)
    @NotNull(message = "帐号角色id (authRoleId) 不能为空")
    private Long authRoleId;

    @ApiModelProperty(value = "叠加角色ids", required = false)
    private List<Long> addAuthRoleIds;

    @ApiModelProperty(value = "机构id", required = false)
    private Long authOrganizationId;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getcPassword() {
        return cPassword;
    }

    public void setcPassword(String cPassword) {
        this.cPassword = cPassword;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getAuthRoleId() {
        return authRoleId;
    }

    public void setAuthRoleId(Long authRoleId) {
        this.authRoleId = authRoleId;
    }

    public List<Long> getAddAuthRoleIds() {
        return addAuthRoleIds;
    }

    public void setAddAuthRoleIds(List<Long> addAuthRoleIds) {
        this.addAuthRoleIds = addAuthRoleIds;
    }

    public Long getAuthOrganizationId() {
        return authOrganizationId;
    }

    public void setAuthOrganizationId(Long authOrganizationId) {
        this.authOrganizationId = authOrganizationId;
    }
}
